﻿using Castle.MicroKernel.Registration;
using Castle.MicroKernel.SubSystems.Configuration;
using Castle.Windsor;
using Turquoise.DataAccess.EntityFramework;
using Turquoise.DataAccess.EntityFramework.Abstract;

namespace Turquoise.Web.Management.Infrastructure.CastleInstallers
{
    public class DatabaseContextInstaller : IWindsorInstaller
    {
        public void Install(IWindsorContainer container, IConfigurationStore store)
        {
            container.Register(Component.For<IDatabaseContext>().ImplementedBy<DatabaseContext>().LifestyleTransient());
        }
    }
}